//
//  CreateViewController.swift
//  testRxSwift
//
//  Created by 火星人 on 2017/7/24.
//  Copyright © 2017年 火星人. All rights reserved.
//

import UIKit
import RxSwift

class CreateViewController: BaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
  
        self.view.addTapWithHandle { (tap) in
            
            let disposeBag = DisposeBag()
            
            let stringObservable = Observable<String>.create({ (observerOfString) -> Disposable in
                observerOfString.onNext("fjd")
                observerOfString.onCompleted()
                return Disposables.create()
            })
            stringObservable.subscribe({ (stringEvent) in
                print("\(stringEvent)")
            }).disposed(by: disposeBag)
            
            
        }
    } 

}
